package com.laijiale.dto;

/**
 * @author laijiale
 * @date 2025年01月09日 0:04
 */

import com.laijiale.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Pattern;

/**
 @author JoeZhou */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(name="用户分页DTo")
@Data
public class UserPageDTO extends PageDTO implements RE {
    @Schema(description = "登录账号")
    @Pattern(regexp = USERNAME_RE, message = USERNAME_RE_MSG)
    private String username;
    @Schema(description = "用户昵称")
    @Pattern(regexp = NICKNAME_RE, message = NICKNAME_RE_MSG)
    private String nickname;
    @Schema(description = "手机号码")
    @Pattern(regexp = PHONE_RE, message = PASSWORD_RE_MSG)
    private String phone;
}
